import request from '@/utils/request'

// 借阅订单
export function getOrderList(data) {
  return request({
    url: `/system/record/statistics/${data}`,
    method: 'post'
  })
}
export function returnBook(data) {
  return request({
    url: `/system/record`,
    method: 'put',
    data
  })
}

export function createOrder(data) {
  return request({
    url: `/system/record`,
    method: 'post',
    data
  })
}

export default {
  getOrderList,
  returnBook
}
